﻿Imports System
Imports System.Drawing
Imports System.Globalization
Imports System.Resources

Namespace System.Workflow.ComponentModel.Design
    Friend Class DR
        ' Methods
        Friend Shared Function GetImage(ByVal resID As String) As Image
            Dim image As Image = [TryCast](DR.resourceManager.GetObject(resID),Image)
            Dim bitmap As Bitmap = [TryCast](image,Bitmap)
            If (Not bitmap Is Nothing) Then
                bitmap.MakeTransparent(AmbientTheme.TransparentColor)
            End If
            Return image
        End Function

        Friend Shared Function GetString(ByVal resID As String, ByVal ParamArray args As Object()) As String
            Return DR.GetString(CultureInfo.CurrentUICulture, resID, args)
        End Function

        Friend Shared Function GetString(ByVal culture As CultureInfo, ByVal resID As String, ByVal ParamArray args As Object()) As String
            Dim format As String = DR.resourceManager.GetString(resID, culture)
            If ((Not args Is Nothing) AndAlso (args.Length > 0)) Then
                format = String.Format(culture, format, args)
            End If
            Return format
        End Function


        ' Fields
        Friend Const AccessibleAction As String = "AccessibleAction"
        Friend Const Activities As String = "Activities"
        Friend Const ActivitiesDesc As String = "ActivitiesDesc"
        Friend Const Activity As String = "Activity"
        Friend Const ActivityDesignerAccessibleDescription As String = "ActivityDesignerAccessibleDescription"
        Friend Const ActivityDesignerAccessibleHelp As String = "ActivityDesignerAccessibleHelp"
        Friend Const ActivityInsertError As String = "ActivityInsertError"
        Friend Const ActivitySetDefaultFileName As String = "ActivitySetDefaultFileName"
        Friend Const ActivitySetDefaultName As String = "ActivitySetDefaultName"
        Friend Const ActivitySetMessageBoxTitle As String = "ActivitySetMessageBoxTitle"
        Friend Const ActivitySetNoActivity As String = "ActivitySetNoActivity"
        Friend Const ActivitySetNoName As String = "ActivitySetNoName"
        Friend Const AddBranch As String = "AddBranch"
        Friend Const AddingBranch As String = "AddingBranch"
        Friend Const AmbientThemeException As String = "AmbientThemeException"
        Friend Const ArgumentExceptionDesignerVerbIdsRange As String = "ArgumentExceptionDesignerVerbIdsRange"
        Friend Const ArgumentExceptionSmartActionIdsRange As String = "ArgumentExceptionSmartActionIdsRange"
        Friend Const ArrowLeft As String = "ArrowLeft"
        Friend Const Bind As String = "Bind"
        Friend Const BindProperty As String = "BindProperty"
        Friend Const BindSelectedProperty As String = "BindSelectedProperty"
        Friend Const BindSelectedPropertyFormat As String = "BindSelectedPropertyFormat"
        Friend Const BMPImageFormat As String = "BMPImageFormat"
        Friend Const BringToFront As String = "BringToFront"
        Friend Const BuildTargetWorkflow As String = "BuildTargetWorkflow"
        Friend Const ButtonInformationMissing As String = "ButtonInformationMissing"
        Friend Const CancelDescriptionString As String = "CancelDescriptionString"
        Friend Const CheckAll As String = "CheckAll"
        Friend Const ChildActivitiesNotConfigured As String = "ChildActivitiesNotConfigured"
        Friend Const Compensation As String = "Compensation"
        Friend Const Complete As String = "Complete"
        Friend Const ConfigError As String = "ConfigError"
        Friend Const ConnectorAccessibleDescription As String = "ConnectorAccessibleDescription"
        Friend Const ConnectorAccessibleHelp As String = "ConnectorAccessibleHelp"
        Friend Const ConnectorDesc As String = "ConnectorDesc"
        Friend Const ContentAlignmentNotSupported As String = "ContentAlignmentNotSupported"
        Friend Const CreatePackageTitle As String = "CreatePackageTitle"
        Friend Const CustomEventType As String = "CustomEventType"
        Friend Const CustomPropertyType As String = "CustomPropertyType"
        Friend Const CustomStyleNotSupported As String = "CustomStyleNotSupported"
        Friend Const DeclarativeRules As String = "DeclarativeRules"
        Friend Const DefaultTheme As String = "DefaultTheme"
        Friend Const DefaultThemeDescription As String = "DefaultThemeDescription"
        Friend Const DesignerNotInitialized As String = "DesignerNotInitialized"
        Friend Const DesignerThemeException As String = "DesignerThemeException"
        Friend Const DropActivitiesHere As String = "DropActivitiesHere"
        Friend Const DropExceptionsHere As String = "DropExceptionsHere"
        Friend Const DropShapeShort As String = "DropShapeShort"
        Friend Const EditActivity As String = "EditActivity"
        Friend Const EditMode As String = "EditMode"
        Friend Const EditModeIcon As String = "EditModeIcon"
        Friend Const EMFImageFormat As String = "EMFImageFormat"
        Friend Const Empty As String = "Empty"
        Friend Const EmptyFontFamilyNotSupported As String = "EmptyFontFamilyNotSupported"
        Friend Const [End] As String = "End"
        Friend Const EndWorkflow As String = "EndWorkflow"
        Friend Const EnteredMarginsAreNotValidErrorMessage As String = "EnteredMarginsAreNotValidErrorMessage"
        Friend Const Error_AddConnector1 As String = "Error_AddConnector1"
        Friend Const Error_AddConnector2 As String = "Error_AddConnector2"
        Friend Const Error_AddConnector3 As String = "Error_AddConnector3"
        Friend Const Error_ConnectionPoint As String = "Error_ConnectionPoint"
        Friend Const Error_Connector1 As String = "Error_Connector1"
        Friend Const Error_Connector2 As String = "Error_Connector2"
        Friend Const Error_FailedToDeserializeComponents As String = "Error_FailedToDeserializeComponents"
        Friend Const Error_InvalidActivity As String = "Error_InvalidActivity"
        Friend Const Error_InvalidImageResource As String = "Error_InvalidImageResource"
        Friend Const Error_MultiviewSequentialActivityDesigner As String = "Error_MultiviewSequentialActivityDesigner"
        Friend Const Error_Reason As String = "Error_Reason"
        Friend Const Error_TabExistsWithSameId As String = "Error_TabExistsWithSameId"
        Friend Const Error_ThemeAttributeMissing As String = "Error_ThemeAttributeMissing"
        Friend Const Error_ThemeTypeMissing As String = "Error_ThemeTypeMissing"
        Friend Const Error_ThemeTypesMismatch As String = "Error_ThemeTypesMismatch"
        Friend Const Error_WorkflowLayoutNull As String = "Error_WorkflowLayoutNull"
        Friend Const Error_WorkflowNotLoaded As String = "Error_WorkflowNotLoaded"
        Friend Const ErrorInitPackage As String = "ErrorInitPackage"
        Friend Const [Event] As String = "Event"
        Friend Const EventsDesc As String = "EventsDesc"
        Friend Const Exception As String = "Exception"
        Friend Const EXIFImageFormat As String = "EXIFImageFormat"
        Friend Const FilterDescription As String = "FilterDescription"
        Friend Const FitToScreen As String = "FitToScreen"
        Friend Const FitToScreenDescription As String = "FitToScreenDescription"
        Friend Const FitToWorkflow As String = "FitToWorkflow"
        Friend Const FitToWorkflowDescription As String = "FitToWorkflowDescription"
        Friend Const FontFamilyNotSupported As String = "FontFamilyNotSupported"
        Friend Const GenerateEventHandlers As String = "GenerateEventHandlers"
        Friend Const HeaderFooterFormat1 As String = "HeaderFooterFormat1"
        Friend Const HeaderFooterFormat2 As String = "HeaderFooterFormat2"
        Friend Const HeaderFooterFormat3 As String = "HeaderFooterFormat3"
        Friend Const HeaderFooterFormat4 As String = "HeaderFooterFormat4"
        Friend Const HeaderFooterFormat5 As String = "HeaderFooterFormat5"
        Friend Const HeaderFooterFormat6 As String = "HeaderFooterFormat6"
        Friend Const HeaderFooterFormat7 As String = "HeaderFooterFormat7"
        Friend Const HeaderFooterFormat8 As String = "HeaderFooterFormat8"
        Friend Const HeaderFooterFormat9 As String = "HeaderFooterFormat9"
        Friend Const HeaderFooterStringCustom As String = "HeaderFooterStringCustom"
        Friend Const HeaderFooterStringNone As String = "HeaderFooterStringNone"
        Friend Const ImageFileFilter As String = "ImageFileFilter"
        Friend Const InfoTipDescription As String = "InfoTipDescription"
        Friend Const InfoTipId As String = "InfoTipId"
        Friend Const InfoTipTitle As String = "InfoTipTitle"
        Friend Const InvalidBaseTypeOfCompanion As String = "InvalidBaseTypeOfCompanion"
        Friend Const InvalidClassNameIdentifier As String = "InvalidClassNameIdentifier"
        Friend Const InvalidDesignerSpecified As String = "InvalidDesignerSpecified"
        Friend Const InvalidDockingStyle As String = "InvalidDockingStyle"
        Friend Const InvalidOperationBadClipboardFormat As String = "InvalidOperationBadClipboardFormat"
        Friend Const InvalidOperationDeserializationReturnedNonActivity As String = "InvalidOperationDeserializationReturnedNonActivity"
        Friend Const InvalidOperationStoreAlreadyClosed As String = "InvalidOperationStoreAlreadyClosed"
        Friend Const InvokeWebServiceDisplayName As String = "InvokeWebServiceDisplayName"
        Friend Const JPEGImageFormat As String = "JPEGImageFormat"
        Friend Const LeftScrollButtonAccessibleDescription As String = "LeftScrollButtonAccessibleDescription"
        Friend Const LeftScrollButtonAccessibleHelp As String = "LeftScrollButtonAccessibleHelp"
        Friend Const LeftScrollButtonName As String = "LeftScrollButtonName"
        Friend Const ModifyPackageTitle As String = "ModifyPackageTitle"
        Friend Const More As String = "More"
        Friend Const MoveAnchor As String = "MoveAnchor"
        Friend Const MoveLeft As String = "MoveLeft"
        Friend Const MoveLeftDesc As String = "MoveLeftDesc"
        Friend Const MoveLeftUp As String = "MoveLeftUp"
        Friend Const MoveRight As String = "MoveRight"
        Friend Const MoveRightDesc As String = "MoveRightDesc"
        Friend Const MoveRightUp As String = "MoveRightUp"
        Friend Const MyFavoriteTheme As String = "MyFavoriteTheme"
        Friend Const NoHelpAvailable As String = "NoHelpAvailable"
        Friend Const ObjectDoesNotSupportIPropertyValuesProvider As String = "ObjectDoesNotSupportIPropertyValuesProvider"
        Friend Const OpenfileDialogTitle As String = "OpenfileDialogTitle"
        Friend Const OSTheme As String = "OSTheme"
        Friend Const PackageAssemblyReferenceFilter As String = "PackageAssemblyReferenceFilter"
        Friend Const PackageFileDefault As String = "PackageFileDefault"
        Friend Const PackageFileExist As String = "PackageFileExist"
        Friend Const PackageFileInvalid As String = "PackageFileInvalid"
        Friend Const PackageFileInvalidChars As String = "PackageFileInvalidChars"
        Friend Const PackageInvalidValidatorType As String = "PackageInvalidValidatorType"
        Friend Const PNGImageFormat As String = "PNGImageFormat"
        Friend Const Preview As String = "Preview"
        Friend Const PreviewActivity As String = "PreviewActivity"
        Friend Const PreviewButtonAccessibleDescription As String = "PreviewButtonAccessibleDescription"
        Friend Const PreviewButtonAccessibleHelp As String = "PreviewButtonAccessibleHelp"
        Friend Const PreviewButtonName As String = "PreviewButtonName"
        Friend Const PreviewIndicator As String = "PreviewIndicator"
        Friend Const PreviewMode As String = "PreviewMode"
        Friend Const PreviewModeIcon As String = "PreviewModeIcon"
        Friend Const PromoteBindings As String = "PromoteBindings"
        Friend Const [ReadOnly] As String = "ReadOnly"
        Friend Const ResizeUndoDescription As String = "ResizeUndoDescription"
        Private Shared resourceManager As ResourceManager = New ResourceManager("System.Workflow.ComponentModel.Design.DesignerResources", Assembly.GetExecutingAssembly)
        Friend Const ResourceSet As String = "System.Workflow.ComponentModel.Design.DesignerResources"
        Friend Const RightScrollButtonAccessibleDescription As String = "RightScrollButtonAccessibleDescription"
        Friend Const RightScrollButtonAccessibleHelp As String = "RightScrollButtonAccessibleHelp"
        Friend Const RightScrollButtonName As String = "RightScrollButtonName"
        Friend Const RuleExpression As String = "RuleExpression"
        Friend Const RuleName As String = "RuleName"
        Friend Const Rules As String = "Rules"
        Friend Const SaveWorkflowImageDialogTitle As String = "SaveWorkflowImageDialogTitle"
        Friend Const ScopeDesc As String = "ScopeDesc"
        Friend Const SelectActivityDesc As String = "SelectActivityDesc"
        Friend Const SelectedPrinterIsInvalidErrorMessage As String = "SelectedPrinterIsInvalidErrorMessage"
        Friend Const SendToBack As String = "SendToBack"
        Friend Const SequenceArrow As String = "SequenceArrow"
        Friend Const ServiceCompensation As String = "ServiceCompensation"
        Friend Const ServiceEvents As String = "ServiceEvents"
        Friend Const ServiceExceptions As String = "ServiceExceptions"
        Friend Const ServiceHelpText As String = "ServiceHelpText"
        Friend Const ShadowDepthException As String = "ShadowDepthException"
        Friend Const SmartTag As String = "SmartTag"
        Friend Const SpecifyTargetWorkflow As String = "SpecifyTargetWorkflow"
        Friend Const Start As String = "Start"
        Friend Const StartWorkflow As String = "StartWorkflow"
        Friend Const StartWorkFlow As String = "StartWorkFlow"
        Friend Const SystemThemeDescription As String = "SystemThemeDescription"
        Friend Const ThemeConfig As String = "ThemeConfig"
        Friend Const ThemeDescription As String = "ThemeDescription"
        Friend Const ThemeFileCreationError As String = "ThemeFileCreationError"
        Friend Const ThemeFileFilter As String = "ThemeFileFilter"
        Friend Const ThemeFileNotXml As String = "ThemeFileNotXml"
        Friend Const ThemeMessageBoxTitle As String = "ThemeMessageBoxTitle"
        Friend Const ThemeNameNotValid As String = "ThemeNameNotValid"
        Friend Const ThemePathNotValid As String = "ThemePathNotValid"
        Friend Const ThemePropertyReadOnly As String = "ThemePropertyReadOnly"
        Friend Const ThemeTypesMismatch As String = "ThemeTypesMismatch"
        Friend Const ThereIsNoPrinterInstalledErrorMessage As String = "ThereIsNoPrinterInstalledErrorMessage"
        Friend Const TIFFImageFormat As String = "TIFFImageFormat"
        Friend Const TypeBrowser_ProblemsLoadingAssembly As String = "TypeBrowser_ProblemsLoadingAssembly"
        Friend Const TypeBrowser_UnableToLoadOneOrMoreTypes As String = "TypeBrowser_UnableToLoadOneOrMoreTypes"
        Friend Const TypeInvalid As String = "TypeInvalid"
        Friend Const UpdateRelativePaths As String = "UpdateRelativePaths"
        Friend Const ViewActivity As String = "ViewActivity"
        Friend Const ViewCancelHandler As String = "ViewCancelHandler"
        Friend Const ViewCompensation As String = "ViewCompensation"
        Friend Const ViewEvents As String = "ViewEvents"
        Friend Const ViewExceptions As String = "ViewExceptions"
        Friend Const ViewNextActivity As String = "ViewNextActivity"
        Friend Const ViewPackageTitle As String = "ViewPackageTitle"
        Friend Const ViewPreviousActivity As String = "ViewPreviousActivity"
        Friend Const WMFImageFormat As String = "WMFImageFormat"
        Friend Const WorkflowDesc As String = "WorkflowDesc"
        Friend Const WorkflowDesignerTitle As String = "WorkflowDesignerTitle"
        Friend Const WorkflowPrintDocumentNotFound As String = "WorkflowPrintDocumentNotFound"
        Friend Const WorkflowViewAccessibleDescription As String = "WorkflowViewAccessibleDescription"
        Friend Const WorkflowViewAccessibleHelp As String = "WorkflowViewAccessibleHelp"
        Friend Const WorkflowViewAccessibleName As String = "WorkflowViewAccessibleName"
        Friend Const WorkflowViewNull As String = "WorkflowViewNull"
        Friend Const Zoom100Mode As String = "Zoom100Mode"
        Friend Const Zoom150Mode As String = "Zoom150Mode"
        Friend Const Zoom200Mode As String = "Zoom200Mode"
        Friend Const Zoom300Mode As String = "Zoom300Mode"
        Friend Const Zoom400Mode As String = "Zoom400Mode"
        Friend Const Zoom50Mode As String = "Zoom50Mode"
        Friend Const Zoom75Mode As String = "Zoom75Mode"
        Friend Const ZoomLevelException2 As String = "ZoomLevelException2"
        Friend Const ZoomShowAll As String = "ZoomShowAll"
        Friend Const ZOrderUndoDescription As String = "ZOrderUndoDescription"
    End Class
End Namespace

